import http from '@/utils/request';

/**
 * 权限登录接口
 */
const doLogin = (token: string) => {
    // const accessState = useAccessStore.getState()
    return http.post(`/v1/auth/login`, { code: token }, {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
};

export {
    doLogin
}